package com.zhuifeng.orders.remote;

import com.zhuifeng.common.core.constant.ServiceNameConstants;
import com.zhuifeng.common.core.domain.R;
import com.zhuifeng.orders.factory.RemoteOrdersFallbackFactory;
;
import com.zhuifeng.product.domain.ProductSku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 订单服务
 *
 * @author zhuifeng
 */
@FeignClient(contextId = "remoteOrdersService", value = ServiceNameConstants.PRODUCT_SERVICE, fallbackFactory = RemoteOrdersFallbackFactory.class)
public interface RemoteOrdersService
{
    /**
     * 修改商品Sku库存数据
     */
    @PostMapping("/updateProductSkuStock")
    public R updateProductSkuStock(@RequestBody ProductSku productSku);
}

